TARGET := main

CC := arm-linux-gnueabi-gcc

INCLUDE := -I/usr/local/include
LDFLAGS := -L/usr/local/lib
LIBS := -lframebuffer -lpthread

SRC := $(wildcard *.c)
DEPEND := $(patsubst %.c, %.o, $(SRC))

$(TARGET) : $(DEPEND)
	$(CC) $^ -o $@ $(LIBS)

%.o : %.c
	$(CC) -c $< $(INCLUDE) $(LDFLAGS) -o $@

.PHONY:clean
clean:
	$(RM) $(TARGET) $(DEPEND) -r

.PHONY:install
install:
	mv $(TARGET) /mnt/hgfs/share/code

